const runtime.sweepDrainedMask
10 uses
runtime (current package)
mgc.go#L182: sweep.active.state.Store(sweepDrainedMask)
mgcsweep.go#L120: const sweepDrainedMask = 1 << 31
mgcsweep.go#L152: if state&sweepDrainedMask != 0 {
mgcsweep.go#L169: if (state&^sweepDrainedMask)-1 >= sweepDrainedMask {
mgcsweep.go#L173: if state != sweepDrainedMask {
mgcsweep.go#L194: if state&sweepDrainedMask != 0 {
mgcsweep.go#L197: if a.state.CompareAndSwap(state, state|sweepDrainedMask) {
mgcsweep.go#L205: return a.state.Load() &^ sweepDrainedMask
mgcsweep.go#L212: return a.state.Load() == sweepDrainedMask
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |